package com.team.service;

import com.team.easyexcel.DiseaseExcel;
import com.team.vo.ReservationVo;
import com.team.vo.Result;
import com.team.vo.UserVo;

/**
 * @author : 陈灰灰
 * @Date: 2022/10/15/16:21
 * @Description:
 */
public interface ReservationService {
    /**@author:chh
     * 查询所有保留帐户
     * @param currentPage   当前页面
     * @param pageSize      页面大小
     * @param account       账户
     * @param reservationVo 预约签证官
     * @return {@link Result}
     */
    Result queryAllReservationsByAccount(int currentPage,int pageSize,String account,ReservationVo reservationVo);

    /**@author:chh
     * 删除通过id
     * @param id id
     * @return {@link Result}
     */
    Result deleteById(int id);

    /**
     * 登录取消预约查询
     *
     * @param userVo 用户签证官
     * @return {@link Result}
     */
    Result toCancel(UserVo userVo);

    /**
     * 取消预约
     *
     * @param id id
     * @return {@link Result}
     */
    Result cancel(Integer id);

    Result quitCancel();

    Result queryByNameAndIDCard(UserVo userVo);

    Result selectByPrimaryKey(int id);

    DiseaseExcel queryByReservationIdAndDown(int id);
}
